import request from '@/utils/request'


export function createSysMenu(data) {
  return request({
    url: '/api/admin/SysMenu/save',
    method: 'post',
    data
  })
}

export function delSysMenu(id) {
  return request({
    url: '/api/admin/SysMenu/del/'+id,
    method: 'post'
  })
}


export function batchDel(data) {
  return request({
    url: '/api/admin/SysMenu/batch/del',
    method: 'post',
    data
  })
}

export function editSysMenu(data) {
  return request({
    url: '/api/admin/SysMenu/update',
    method: 'post',
    data
  })
}



export function getInfo(id) {
  return request({
    url: '/api/admin/SysMenu/get/'+id,
    method: 'get',
    params: { id }
  })
}


export function getPageSysMenu(query) {
  return request({
    url: '/api/admin/SysMenu/getPage',
    method: 'post',
    data: query
  })
}

export function getListSysMenu(query) {
  return request({
    url: '/api/admin/SysMenu/getList',
    method: 'post',
    data: query
  })
}




